package TestD;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class StringUtil {

    public static void printNumber(String name){
        System.out.println("字符串的长度是"+name.length());
    }

    public static int getMaxIndex(String date){
        if(date==null){
            return -1;
        }
        else {
            return date.length()-1;
        }
    }


}